<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>

    const fn1 = () => {


      try {
        console.log('===try之前 ===>',)
        c
        return 1
      } catch (error) {
        console.log('===catch===>',)
        // throw 0

      } finally {
        console.log('===finally===>',)
    // return 2
            `          }
      console.log('===finally后面===>',)


    }
    function main() {
      try {
        const ret = fn1()

      } catch (error) {
        console.log('===error===>', error)

      }


    }
    main()

  </script>
</body>

</html>